﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TinyERP.Framework.Controls
{
    public partial class DefaultSearchBar : BaseSearchBar
    {
        
       
        public DefaultSearchBar()
        {
            InitializeComponent();
            this.findButton.Click += delegate(object senderObj, EventArgs ev)
            {
                if (this.SearchHandler != null)
                {
                    this.SearchHandler.OnFind();
                }
            };
        }
        public override string SearchValue 
        {
            get
            {
                return txtDefaultSearchField.Text.Trim();
            }
            set
            {
                txtDefaultSearchField.Text = value;
            }
        }
       
    }
}
